<?php

//use Illuminate\Support\Facades\Schema;
use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopCollectsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() 
    {
        Schema::create('shop_collects', function (Blueprint $table) {
			$table->comment = '商品收藏表';
            $table->increments('id')->comment('收藏ID');
			$table->integer('user_id')->comment('用户id');
			$table->integer('product_id')->comment('商品id');
			$table->tinyInteger('status')->default(0)->comment('是否查看：1=是 0=否');
            $table->timestamps(); 
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_collects');
    }
}
